package com.iter.devbox.pattern.adapter;

/**对象适配器方式，通过组合实现*/
public class Adapter2 implements Target {
	/**对源对象的引用*/
	private Source source;
	
	public Adapter2 (Source source) {
		this.source = source;
	}

	@Override
	public void method() {
		source.method();
	}
}
